import request from '@/utils/request'

// 查询区域营商环境介绍列表
export function listBusfrontIntro(query) {
  return request({
    url: '/busfront/businessIntro/list',
    method: 'get',
    params: query
  })
}
export function listBusinessIntro(query) {
  return request({
    url: '/busfront/businessIntro/allList',
    method: 'get',
    params: query
  })
}

// 查询区域营商环境介绍详细
export function getBusinessIntro(id) {
  return request({
    url: '/busfront/businessIntro/' + id,
    method: 'get'
  })
}

// 新增区域营商环境介绍
export function addBusinessIntro(data) {
  return request({
    url: '/busfront/businessIntro',
    method: 'post',
    data: data
  })
}

// 修改区域营商环境介绍
export function updateBusinessIntro(data) {
  return request({
    url: '/busfront/businessIntro',
    method: 'put',
    data: data
  })
}

// 删除区域营商环境介绍
export function delBusinessIntro(id) {
  return request({
    url: '/busfront/businessIntro/' + id,
    method: 'delete'
  })
}

// 查询城市列表
export function listCity(query) {
  return request({
    url: '/system/sysdistrict/cityList?pid='+query,
    method: 'get',
  })
}
